package com.xs.store.good.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xs.store.good.mapper.GoodMapper;
import com.xs.store.good.pojo.Good;
import com.xs.store.good.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodServiceImpl implements GoodService {

    @Autowired
    GoodMapper goodMapper;

    @Override
    public List<Good> list() {
        QueryWrapper<Good> ew = new QueryWrapper<>();
        return goodMapper.selectList(ew);
    }
}
